public class BackpackItemData
{
    public ItemData itemData;
    public int count;

    public BackpackItemData(ItemData _itemData,int _count)
    {
        itemData = _itemData;
        count = _count;
    }

    public void AddItem(int _count)
    {
        count += _count;
    }
    public void RemoveItem(int _count)
    {
        if (count == 0) return;
        int finalCount = count - _count;
        if (finalCount < 0) 
        {
            return;
        }
        count = finalCount;
    }

}
